import request from '@/utils/request'
export function getlist(listquery) {
    return request({
        url: '/api/datareceive/getlist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: listquery
    })
}
export function getcitylist() {
    return request({
        url: '/api/village/getcitylist',
        method: 'get',
       
    })
}
export function getcountrylist(city) {
    return request({
        url: '/api/village/getcountrylist',
        method: 'get',
        params: city
    })
}
//数据领取备案
export function getvillagelistskip(city,country) {
    return request({
        url: '/api/village/getvillagelistskip',
        method: 'get',
        params: {
            city,
            country,
        }
    })
}



//获取当前已备案的存在
export function gethasvillageids() {
    return request({
        url: '/api/receivedara/gethasvillageids',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
    
    })
}
export function gethasvillagenamelist() {
    return request({
        url: '/api/userprofile/gethasvillagenamelist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
    
    })
}
export function add(data) {
    return request({
        url: '/api/datareceive/add',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:data,
    })
}
export function edit(data) {
    return request({
        url: '/api/datareceive/edit',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:data,
    })
}
export function del(id){
    return request({
        url: '/api/datareceive/del',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:id,
    })
}